added some android detection code