clean up dispatch function in mod_mikey