beginnings of a resource manager
also inhibited a bunch of warnings that were in 3rd party code, so it can be safely ignored.