added debug mode 3