we must sort meta headers
now key generation logic can be overriden