added browser check (temp hack)