consolidate event in one message
build state machie