linkup and linkdown tentatively working