delete not needed upgrade directory and add header to file