added option for rewrite rule on selectors