fix bug where MsgQuery cannot parse undirected queries
add stubs for directed/undirected queries