use fileReader instead