added error msgs for apn
apn and chat modules, checkin before refactor into app,js