work on async querying