event registration and config