packet improvements (mostly addition of UDP)