better legacy support
still crashes on FreeBSD