initial work on shutdown