added modularity to main to start performConnection