fixed turnknub func
added debug func for dacs