mobile rewrite fixes