add routes and loader files