toplevel dispatcher

moving the dispatcher to the top level of the application. many modules will make use of it