refactor zsh