debugmode is off by default