very crude version of upload successfully working