patch uploader is somewhat working.  only minor changes left.  Tests
should be writtn