move contact obj before routes and code cleanup