first pass at packet creating code