tweaks rack rewrite