add mapwriter