add helper method to get or create a client with a custom config class