api: added life cycle events