implemented accept_all, removed a malloc in control_listener