fixed authorization in Client.java