adapt to use twisted log system.
several fixes and advances.