tcp listener working