improved compatibility for unix