add scoped directive