added redirect command. fix #9