add masking to datalinks and empty trash