refactored the BatchSession API a bit