updated health functionality in planenvironment controller