check filereader result before assigning to src