workaround for Apple environment bugs in Yosemite