to be portable across OSX and ubuntu (I hope)