Clean up synax_error, asstions and merge mechanisms