credit Thomas Sanchez Lengeling for testing on OSX