Adapt for new pathod and netlib APIs.