first phase of roundtrip code functionality