add method to set configuration