make it possibly to specify that a buffer should be freed
io framework enough to support the test program