- implemented new sync logics on server
fixed some debug messages