add a directive