add logger when error. Add autolen parameter for SMS, to allow to send multiple SMS