wrapping platform check (osx vs linux) in simple functions