updated for params and remote_file