patch matching for actions