correcting multiline rules. Empty lines is a problem yet