New directive logic

added some funcionality related to the question types.