check for optional dependency