modified to run on remote host for now
add a remote flag