added option to select startup mode