corrected, for POSIX compliance will allow for OS X use