add backward compatibility to patches prior to 0.6.1