Copy from old hatools to get started; 1st commit