strange problems with blocks and scope