make control port more useful by setting up a dispatch table with regexs to parse commands