use warn instead of puts