added filtering of symlinks