dot-emc plugin with some modifications