fix errors from refactor, sms logging