init commit copied from the hguide code