added dependencies, fixed connection bug in client