added rewriterule for logical props