updates on the tcap code that does NOT compile