two way communication, automatic connection retries, and sleep mode added