refactor: added lib for routes