adding top -b batch mode