Programmatically controlling dynamically loaded plugins