added query script file for later use