debugmode and corrections