made locations and try_files into arrays