mac/unix compatibility