finish mvef function, use promises, (mvefTest is not finished yet)