some optims on tcp server + filter
some optims filter errors