fixed many things around browser detection