removing some unix-ish code