some cleaning in preferences