use constructor to initialize. use the  method to change config