implemented routes and e2e tests