implemented at least serial write::insert and tests