add stack of local scope definitions