fix zsh read function