better scaffolding scheme