write documentation... support BSD