little improve, complete log out and exce command and upload to self
selected dir