added some conversion utils. fleshed out packet dispatching a bit more