more porting of linegame.view package