attempt to fix BSD breakage