divide save command into format-specific commands. close #161