meta cleanup, optimized sharedPtr