update hook to update composer