on registration and activation