added new route and fixed some errors