fix visibility from val def in blocks
implement extract value
implement extract method