move directive to separate file