changed helper method Pair for RemoteParam.
refactored some names.