use new loadQuery method signature