shared lib for sync