parse location file