still trying to get file check to work