add functions for zsh