add batching ("recipe") feature to improve performance.