added proper delete staged file code, futures factory and a start up single file mode upload (new version)