add BaseDirective

Change-Id: Ia2d42db38675e46655f6a0787e92c971ee0b15b1