notes on BSD detection