HQP updates and AI fixes