fixed some stuff in management, and a cleaner shutdown
updated config file