detect osx
let transfer work on linux and osx
organise things