removed debugging from batch mode