merge with master.
Closes #690 .
append to previous file.
And generate error if nothing to do at remote server.