add dispatcher script and Makefile