separate the logging from smsapp