more setup work and start a debug state