enable get_location method