changed return data format for insertBatch function
fixed multiple stock out broadcast