attach events to profiles
remove some logs