Revert "remove legacy api"