add default settings, make debug mode a boolean setting