modify links, fix dependencies