save presence message and filemessage in the history; fix auto connect