create a partly functional annotations directive