renaming of some functions, spawn_link for both listeners, fewer error handling