implement #38 - allow config to be an array