grid refactor, new tcp server