Fixed bugs after refactor
Fixed bug when sending no data and return bytes
Added remote_thr perf