improved solution implemented in commit https://github.com/globaleaks/GLBackend/commit/f9c9b8b09fc14198c418f13d9959abe00cea5cc4