make things more browser safe