moving some stuff for osx/nixy compat