add symlinks handling
small symlink handling improvements