added events to api-stub