extracted file loading to own method