add status in query files