normalize pattern. it's all ruby ish now.