added resource manager addresource functions