add support for lifecycle callbacks
1.1.0