removed unused register_handle (alternative poc)