moved examples, made the sync example re-use same code on server