basic event cycle

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>