add support for config file, and dynamic relay host change