added withES function where the remote option is implicit