added better support for magic mouse