moved commands to shell script