renamed directive to be generic