hashing out rewrite mod again