changed autoclose script so spike brackets are not matched