error scaffolding