adapting to changes in finapps/api#19