added option to load location file