rewrite rules for new-style exec implementation