adopting new api interfaces.