refactoring - initial call - set routes
refactoring init call