debug mode use the simulator, release use the real thing