refactor startup code