rack-rewrite setup