added support for FreeBSD
removed deprecated parameters