https://github.com/freedomjs/freedom/commit/d88111a6c1a385681b82bf8b4e1aa250112f0d1c