[bug] remote file shouldn't be retrieved if present