mouse stuff
merging jared's code