add a simple function to dispatch

alpha branch which perform main features of dispatcher.py script