removed warnings and send method in client