added smart_ptr for mesh and texture mgrs