phase3 rewrite wtp