pattermn should be a string, not a regex, yet
removed feature that pattern is string or regexp..only regexp