moved text file loading to separate unit