Fix errors. add route.