improved console client; few fixes in client_lib