added a few commandos a fixed problem with tikzexternalize