add old code to new scaffolding