modified muddy for osx