fixes to openssd_endio