instead of computing package len by adding container header + pkg.length, hide this internal by using a macro