limit now an object with error and warn properties