adding resource manager
working resource manager