readBGFile and so on