updated nlsr_sync.c