remove last kernel.context_dir usage