added file check