add optional directives