main shell script