starting to implement TGS
local tgs script added; more work on level_state / ad_manager integration