additions to handle the sopo event.