adding if __main__ invocation for plugins.