add nearest block command