directive block detection