add workaround for freebsd