handle errors in features