rewrite without reflection, allow google apps for domains