looks like the bson encoding for the dispatcher now works, still could use some simplification