threats and threatmanager (using events of main function)