remove managed_directory and fix notifications