avoid double file read and get a first working version