support multiple APP_HOST and APP_PORT