fixing optional dependency conditionals