moved resource manager into production code