upgrade hooks ~> 0.3.1