changes logic to choose neo4j rest server