updates to debug()