fixed issues with osx interfacing.