use scoped_array for uint8 array in skip()