added debug feature to config.xml