remove head from scriptgen