unix compatibility edits