split and rewrite-rules