file reader cleaned, not tested so far