added basic event matching
added basic action functionality