rewrite-rules name binding (partially)