add option to add or not add non-matching dependencies