simplify dependency check