adds ignore file and closes span properly