check batch number when doing batch upload
reset terminal also reset batch