handle symlinked files