trying to avoid leaks. no more events used.