cleaned up the tutorial startup code