added option to limit debug output to specific debug mode