update file reader contract