changed functions auth and send_message