quick and dirty fix to read file sync