started to implement the dispatcher part in the director