moved routes to lib folder, trying to async things into order