setting up dispatcher class