fixed .configure() method