added route and some posts functions