read files synchronosly