first prototype of actual sync functionality