added class constructors and host/port values