parse publish packets