added directive handling for def, equ and set