updated zsh to use new function declarations