more fixes for write command to work better with backwards compatibility