fixed Darwin/Linux