sync can now read from stdin like save.