remove unnecessary precmd