major browser refactoring