update API again, use setters to set configuration of library