compression and header checks