modularizing zsh functionality