add startupMode method