presence rewrite