fixed getmessages, broke message sending