added batchid generator