ipad and blackberry support + better detection