make use of safe_handle