start moving code into cxx