splited events from the api, added a setter.