linehandler replaced to work without twisted on mac