added configuration save and query scripts