rename env names. add cmake env hook