some improvements in the validatebuffer example program