implemented simple APN chat functionality