updating so it works for freebsd