adding functionality to parse events for configuration.
also adding thresholding to sprynkler