location parsing