made debug output dependend to debug-variable
@rightmanager-group: maybe use config-files here?