bug fix and warning on remote_path