added messenger code