add file_sync and db_error