legacy code base flow