replace "curl" functionality in java_ark with remote_file