working prototype of ngsync