update run.sh to read pid