planning a rewrite from scratch