adapting to changes in https://github.com/finapps/api/issues/19