added more of the make_connection method