fix problem tty and add rsync support