removing the need for browserbuild, refactoring