now cloning passed config object to avoid modifying canonical config