add part/quit hooks