loading for queries