updated hackage script