sync with qbuild