fix minor problems while changing the system; add duplicate writer