only in batch mode