helper for zsh builtins