initial checkin
non-trivial on mac osx, trying on freebsd next