more minor changes to do_ostat