updating for new lifecycle api. these methods must set state for STARTING and STOPPING
updating for new apis cond.
intellij, gradile, and mac ignores