updated tcp recv with new config