added a global variable to ignore symlinks