define directive coded up to handle all types of adding plugin functionality and immediate evaling.