simplify check for hidden deps