add multiple pattern support