added check on symbolic link