initial sketch of a dispatcher