run as shell script