set optional dependency