query endpoint updated