some fixes to chrome's securitycrap