finishing up resource manager - maybe it'll work?