added missing args to query calls