make runtime independent of foo_alloc