warning function is actually called warn