still working on theta and batch mode