improved errors demo