changed rewrite module type
Merge pull request #37 from wick-ed/master

reviewed diff and tested locally with 0.6.0beta1 and standalone