fixing symlinks to directories and simplifying log