adding get_position API call