tweaks to get working on mac os mavericks