make discover configurable