parameterize rewrite_deadline