fixed client initialization bug
added config