added filtering based on a target device and its dependencies