bugs in debug/elf... writing my own