added simple resource manager