move loading echo to main file loop