merging talker and listener into one process