replace file reading code with uv file reading stuff