reset schema and display directives after each block (systematically); print out better error message