add get_available_name method