update build file; fix variants query problem