use hash table in dispatcher

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>