adding browser sniffing.
better documentation