adding in queries and text from tasks.txt
initial state revised to match script