rethreading shutdown
working on shutdown