client connection functions added