refactored from main to ServiceStarter