remove some links, fix permissions