add setSystemEvents function to Response class