add gen_event and rebar.config