setup code base.
(cherry picked from commit 98da304)