sync with php backend