added smart_ptr for resource mgr