added shutdown