move library host, port into config