process.sh refined