use remote_file instead of curl