event state stream compiler and tools