added a resource manager