add patch support for lemon