add sync adapter code