libse is a simple event driven library