using require in directive