API simplification: take context from block