added execution of upload in single thread