use only with regopt for demo test