move location to separate file