debugging: fix rewriting all code