initial working checking.  works for osx, not tested yet on windows