allow optional settings in constructor.
