minor code reorg  and add suport for post and pre compile hooks
append releases instead of overriding