reads data headers