add part and quit hooks to lua module