GEN_WRITE2 added