rewriting pwn