minor updates to mef_lib.c