modularized host and port