moved directive to a separate file