added two factory methods that return tor_connections