adding multi-write feature