renamed restgen to hapigen