solver + rootfinding works