licenses & refactor packet class