complite packet parsing