added some mobile optimizations