refactor route. Delete old files