compatibility with ext-pq/master