replaced warn with warnx