update health scripts and bug fix