changed library that works with older query version