fix up zfunctions. adding osx specific helpers