organize packet stuff