add bar directive.