r17647: the init fns should not take a mem_ctx