saving scope from block

bugs bugs bugs :-)