integrated a minimalistic event framework and switched all prior callbacks over to real events