adding factory method with default host and port