batch reactor now uses a context