minor changes, determining how program starts