refactor Dataset load to use each_line of given interface