more stuff added to the query script