Api changes to make wise app work with 2.6

* Tested on Mac, the script works. 
* Pending tests  on windows.
it is fine to keep: we merge into 2.6 branch