fixes to make it work with chromium version 29