legacy to es