replace generic bsd handling