linking/unlinking with local