adde more logging to better track lifecycle