adding config file support for the client script