adding option to spin up in server mode or not