ds: refactoring: read file