some magic stuff, hopefully Debug will be disabled now