[core] use eventsystem interface instead of hard class;
[apiclient] fixed apiclient bug;