move functions to zsh/lib/functions