main script uses sh again