bug fixes for getMapper() in RpcUtils