added old, working z.sh