removes unnecessary routes.
updates methods to resolve thrown error.