trying to make shutdown work