make usage of batch API easier