ensure block safe call