update run.sh for function arguments
update run.sh for function arguments