exp and query scripts