bsd fixes