simplify pack & add example test