removed old dispatch() function, renamed dispatch_new() -> dispatch(), added upload handling code (from old dispatch function).
Changed paths: