the freeing came too early - fixed this now