main into basic_service to start refactor