debug flag to settings