added debug switch to daemon config