sloch written, working for symbolic links