separated scene loading into IO and GL parts in preparation for resman