better handling hm with the same main
no more standalone executable for the HM