change some in main and gamelib