added limit to patches, Resolves #35