generate mml from yaml properly