add directive structure