added routes and lib