simplistic support for unique_ptr