allow replacing whole document with add and empty path