new structure, added stageManager, added demo example