fixed names of private functions that were not POSIX compatibles