added content length for remote files