nearly serialising a whole connect packet