fixed xq to provide basic functionality without RESTXQ