implemented 'sync' command -- q&d