added upload logic; TODO: right view of command;