simplyfied method rewriter
introduced trace conventions to enable custom trace injection