fixed rewriterule and usage messaging