cleaned up graphDirective some more