code rewrite to work on soap v1 (multicall support)