update hook and rename public to old