updated with https://github.com/dimagi/commcare-hq/pull/1383