added POSIX support