documentation
better handling of data with header but no mask