added basic trace printing