added gate control in World:add