rewrite of client annotation transformation