add missing print api to stub version of struct code