added debug flag to the configuration