separate debug and simulation modes