fix indentation, add extra check for stderr size