change the way debug works