use callback instead of closures when extending helpers