move trackign code into head, docs are contradictory