delete and read sync and some bug fixed