add file save path check