added and cleaned up pin scaffolding