ready for test1

clear all the debugging settings;
make the switch between modes free of bugs.