modifying clevent_init, it takes useful parameters ;)