adding flash segment wise
experimental printfs