keypath function argument keypath replacement support with res methods