modification of mf_convert from BerkeleyGW