fix failure by getting host and port from properties