started message controller, much pseudocode at the moment