added health support, divided big scripts on small ones to reusing.