added lifecycle logging