updated cpphook