refactored likely_read so curl backened shares logic file fopen backend