made monitor support varying batch sizes