proto buf cleanup