tried to add more lifecycle hooks and logging
actually got it working