made dispatcher injection optional

closes #12