refactor: minor general refactor and improvements. add browser sources