added some routes, and did massive refactoring

yes, all that in one commit

bad developer, bad developer