all function in process.sh script