modify stand alone demo