Split runtime and ctx