same as https://github.com/leapcode/bitmask_client/pull/398/files#r6885886