start of mgdm port (not yet functional)