tweaked debug box
merging changes