adding bsd support