remove an unnecessary call to close_userdata
add hash_id