fix for chaining and cached result on wraped function