better error management #2