Trying to fix fileReader factory