update heads + meta