sync/async demo