retested on FreeBSD