make main.go similar to the version used in HouseMon