appendQuery can be public