more progress, added packet parsing/generation