make resmanager more like gfx singleton