changed trace and print functions to follow go consistency