Mef implementation

added implemetation for for mef.