fixes #1 and further streamlines sync command