implemented connecting to first chain's server passing local key path