improved dumpcode