debug mode support