check if mouse stuff is defined before running