warn is deprecated, changing to warning