moving debug mode to config file