preparing shell script