utils, MDA and gen