when init and destory
log it