some authorization and removal of unnecessary routes