modernizing legacy MES systems