'forked' starhealth's code