trying to get the right 'mode' for ncatted in preprocess.sh script