sync with pi