added support for gamesegment initialization, minor cleanup