debug flag in preferences