adds some debugging hacks