a event-driven library