fixing update/install hooks