fixing routes and fromMongo()