add code for cleaning up unused devices mentioned in the config