init for NewDemo