updated missing parts of h_bsdapi