add dispatcher for flux