adding version to hook