basic code, packagebuffer lib, unit test