initial work for passing large files.
fixed dispatching.